Purpose
|
Return the amount of available space on a disk, in bytes.
|
Syntax
|
bytes&& = DISKFREE(drive$)
|
Remarks
|
drive$ specifies the drive letter or UNC share name (subject to operating system restrictions) of the disk to examine. If drive$ is an empty string, information on the default drive is returned.
|
Restrictions
|
With Windows 95 versions before OSR2, and Windows NT versions before 4.0, DISKFREE may return a negative or inaccurate value for drives larger than 2 GB.
|
See also
|
DISKSIZE
|
Example
|
DisplayText "Free bytes on C: " + FORMAT$(DISKFREE("C"), "#,###") |